//
//  SDActionSheetTableViewCell.m
//  SDAlertView
//
//  Created by sander on 2017/10/24.
//

#import "SDActionSheetTableViewCell.h"


@interface SDActionSheetTableViewCell()
@property (nonatomic, weak) UILabel * theActionSheetTitleView;

@end

@implementation SDActionSheetTableViewCell

+ (NSString * )CellIdentifier
{
    return NSStringFromClass(self);
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (void)setCell_string:(NSAttributedString *)cell_string
{
    _cell_string = cell_string;
    
    self.theActionSheetTitleView.attributedText = cell_string;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.theActionSheetTitleView.frame = self.contentView.bounds;
    
    
}


- (UILabel *)theActionSheetTitleView
{
    if (!_theActionSheetTitleView) {
        UILabel * theView = [[UILabel alloc] init];
        [self.contentView addSubview:theView];
        theView.textColor = [UIColor colorWithRed:33.0f/255.0f green:33.0f/255.f blue:33.0f/255.0f alpha:1];
        theView.textAlignment = NSTextAlignmentCenter;
        theView.font = [UIFont systemFontOfSize:15];
        _theActionSheetTitleView = theView;
    }
    return _theActionSheetTitleView;
}


@end
